﻿using System.Windows;
using System.Windows.Controls;
using VupSlashLauncher.Common;
using VupSlashLauncher.Model;

namespace VupSlashLauncher.View
{
    /// <summary>
    /// UpdateView.xaml 的交互逻辑
    /// </summary>
    public partial class UpdateView : UserControl
    {
        IDownload download = new IDownload();
        public UpdateView()
        {
            InitializeComponent();
        }

        private void NoticeWindowButton_Click(object sender, RoutedEventArgs e)
        {
            if (GlobalValues.LatestVersion != "未知版本") IFunc.LatestNotice();
            else IMessageBox.Show("没有最新公告内容呢", "提示", "好的");
        }

        private void ManulUpdateButton_Click(object sender, RoutedEventArgs e)
        {
            IManulUpdateBox manulUpdateBox = new IManulUpdateBox();
            manulUpdateBox.ShowDialog();
        }
    }
}
